<?php


namespace App\Models;


use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;

class TemplateMessage extends Model
{
    use  Notifiable;
    protected $table = 'template_messages';
    //
    protected $fillable = [
        'template_id', 'name', 'desc'
    ];
    public function items(){
        return $this->hasMany('App\Models\TemplateItem','t_id','id');

    }
}
